package org.jimmy.tang.designpattern.structure.proxy;

/**
 * @author jimmy
 * 
 */
public class ProxyObject implements Object {
    Object obj;

    public ProxyObject() {
        System.out.println("This is proxy object.");
        obj = new ObjectImpl();
    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.structure.proxy.Object#action()
     */
    @Override
    public void action() {
        System.out.println("Begin proxy...");
        obj.action();
        System.out.println("End proxy...");

    }

}
